package com.wantupai.mvp.framework.lce.impl;

import android.view.View;

import com.wantupai.mvp.framework.lce.ILceAnimator;
import com.wantupai.mvp.framework.lce.MvpLceView;
import com.wantupai.mvp.framework.lce.impl.animator.DefaultLceAnimator;
import com.wantupai.mvp.mvp.lce.MvpViewImpl;


/**
 * 代理模式-LCE设计->目标对象
 * @param <D>
 */
public class MvpLceViewImpl<D> extends MvpViewImpl<D> implements MvpLceView<D> {

    @Override
    public ILceAnimator getAnimator() {
        if (mIMvpAnimator == null) {
            mIMvpAnimator = new DefaultLceAnimator();
        }
        return (ILceAnimator) mIMvpAnimator;
    }

    @Override
    public void initView(View rootView) {
        super.initView(rootView);
    }

    @Override
    public void loadData(boolean isPullToRefresh) {
    }

    @Override
    public void refreshComplete() {

    }

    @Override
    public void noMoreData() {

    }

    @Override
    public void loadMoreError() {

    }

    @Override
    public void loadRefreshError() {

    }

    public void setAnimator(ILceAnimator animator) {

    }
}
